import request from '@/axios/axios.js'

// 查询列表
export const searchApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldInfo/moldOperationPage',
        data: params
    })
}
//获取已经关联的列表
export const getLinkList = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldDevice/moldDeviceCorrelatePage',
        data: params
    })
}


//获取未已经关联的列表
export const getDeviceNoList = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldDevice/moldDeviceNotCorrelatePage',
        data: params
    })
}

// 编辑
export const editApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldinfo/updateMMoldInfo',
        data: params
    })
}

// 删除
export const deleteApi = (params) => {
    return request({
        method: 'put',
        url: '/dms/moldDevice/moldCancelCorrelateDevice',
        data: params
    })
}
//批量关联
export const devicesAssociated = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldDevice/moldCorrelateDevice',
        data: params
    })
}

//工装详情
export const mdDetail= (params) => {
    return request({
        method: 'post',
        url: '/dms/moldInfo/selectMoldDetailPage',
        data: params
    })
}

